﻿<%@ Page Language="C#" MasterPageFile="~/ProductManager/ProductManage.Master" AutoEventWireup="true" CodeFile="ProductsList.aspx.cs" Inherits="GoShopping.Web.ProductManager.ProductList1" Title="无标题页" %>
<%@ Register assembly="ExtensionGridView" namespace="ExtensionControls" tagprefix="cc1" %>
<%@ Register assembly="GoShopping.Components" namespace="BaseText" tagprefix="cc2" %>
<%@ MasterType VirtualPath="ProductManage.Master" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <table class="style1" cellpadding="0" cellspacing="0" border="0" style="width:800px">
    <tr>
        <td align="center" colspan="2">
            <asp:Label ID="Label1" runat="server" Text="默认操作区"></asp:Label>
        </td>
        <td style="width: 120px">
            <asp:Label ID="Label2" runat="server" Text="导入导出"></asp:Label>
        </td>
        <td>
            <asp:Label ID="Label3" runat="server" Text="标签管理"></asp:Label>
        </td>
        <td>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Label ID="Label16" runat="server" Text="搜索"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:LinkButton ID="LinkButton1" runat="server">高级搜索</asp:LinkButton>
        </td>
    </tr>
    <tr>
        <td>
            <%--<asp:DropDownList ID="ddlOtherOperate" runat="server" Height="26px" 
                Width="80px" AutoPostBack="True" 
                onselectedindexchanged="ddlOtherOperate_SelectedIndexChanged">
            </asp:DropDownList>--%>
            <asp:Button ID="btnAddProduct" runat="server" onclick="btnAddProduct_Click" 
                Text="添加商品" Width="68px" />
        </td>
        <td>
            <asp:Button ID="btnDel" runat="server" Text="下架" onclick="btnDel_Click" />
            <asp:Button ID="btnRecycle" runat="server" Text="回收站" 
                onclick="btnRecycle_Click" />
        </td>
        <td style="width: 120px">
            <asp:Button ID="btnInput" runat="server" Text="导入" onclick="btnInput_Click" />
            <asp:Button ID="btnOutput" runat="server" Text="导出" onclick="btnOutput_Click" />
        </td>
        <td style="width: 120px">
            <asp:Button ID="btnManage" runat="server" Text="管理" onclick="btnManage_Click" />
        </td>
        <td>
            <asp:DropDownList ID="ddlSearchCondition" runat="server" Height="26px" 
                Width="80px">
            </asp:DropDownList>
            <cc2:ZLTextBox ID="zltxtSearchValue" runat="server" Width="80px"></cc2:ZLTextBox>
            <asp:Button ID="btnSearch" runat="server" Text="搜索" onclick="btnSearch_Click" />
        </td>
    </tr>
    <tr>
        <td colspan="5">
            <cc1:ExtensionGridView ID="extGVProduct" runat="server" 
                AutoGenerateColumns="False" PagerText="当前第{0}页,共{1}页{2}条记录" 
                RecordCount="-1" AllowPaging="True" 
                AllowSorting="True" AutoSort="True" EmptyDataText="没有商品记录!" 
                onrowcommand="extGVProduct_RowCommand" Width="800px" 
                onpageindexchanging="extGVProduct_PageIndexChanging">
                <Columns>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:CheckBox ID="cbAll" runat="server" 
                                oncheckedchanged="cbAll_CheckedChanged" AutoPostBack="true" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="cbSingle" runat="server" />
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="编号" Visible="False">
                        <HeaderTemplate>
                            <asp:Label ID="Label6" runat="server" Text="编号"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblID" runat="server" Text='<%# Eval("ID") %>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作">
                        <HeaderTemplate>
                            <asp:Label ID="Label1" runat="server" Text="操作"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:Button ID="btnEdit" runat="server" Text="编辑" 
                                CommandArgument='<%# Eval("id") %>' CommandName="EditItem" />
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="商品名称">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <HeaderTemplate>
                            <asp:Label ID="Label7" runat="server" Text="商品名称"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblProName" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="标签">
                        <HeaderTemplate>
                            <asp:Label ID="Label5" runat="server" Text="标签"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblBiaoQian" runat="server" Text='<%# Eval("Tag")%>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="品牌">
                        <HeaderTemplate>
                            <asp:Label ID="Label13" runat="server" Text="品牌"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblBrand" runat="server" Text='<%# Eval("Brand") %>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="分类">
                        <HeaderTemplate>
                            <asp:Label ID="Label9" runat="server" Text="分类"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblType" runat="server" Text='<%# GetRelatedColumn.GetTypeName(Eval("ProductTypeID")) %>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="库存">
                        <HeaderTemplate>
                            <asp:Label ID="Label10" runat="server" Text="库存"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblCount" runat="server" Text='<%# Eval("Count") %>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="销量">
                        <HeaderTemplate>
                            <asp:Label ID="Label11" runat="server" Text="上架?"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblIsOnSale" runat="server" Text='<%# GetRelatedColumn.ConvertBoolToString(Eval("IsShowOnSale")) %>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
<%--                    <asp:TemplateField HeaderText="点击数">
                        <HeaderTemplate>
                            <asp:Label ID="Label12" runat="server" Text="点击数"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblClick" runat="server" Text='<%# Eval("ClickCounts") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>--%>
<%--                    <asp:TemplateField HeaderText="优先级">
                        <HeaderTemplate>
                            <asp:Label ID="Label14" runat="server" Text="优先级"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblRank" runat="server" Text='<%# Eval("Rank") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>--%>
                    <asp:TemplateField HeaderText="供应商">
                        <HeaderTemplate>
                            <asp:Label ID="Label15" runat="server" Text="供应商"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblSupplier" runat="server" Text='<%# GetRelatedColumn.GetSupplyerName(Eval("SupplyerID")) %>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
<%--                    <asp:TemplateField HeaderText="简介">
                        <HeaderTemplate>
                            <asp:Label ID="Label17" runat="server" Text="简介"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label18" runat="server" Text='<%# Eval("BriefIntroduction") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>--%>
                </Columns>
                <HeaderStyle HorizontalAlign="Center" />
            </cc1:ExtensionGridView>
        </td>
    </tr>
<%--        <tr>
            <td colspan="2" style="width: 120px">
                <asp:LinkButton ID="lbtnPrdtIn" runat="server" onclick="lbtnPrdtIn_Click">商品进货信息</asp:LinkButton>
            </td>
            <td colspan="2" style="width: 120px">
                <asp:LinkButton ID="lbtnStockOut" runat="server" onclick="lbtnStockOut_Click">商品缺货信息</asp:LinkButton>
            </td>
            <td colspan="2">
                <asp:LinkButton ID="lbtnPrdtRemark" runat="server" 
                    onclick="lbtnPrdtRemark_Click">商品回复信息</asp:LinkButton>
            </td>
            <td colspan="2">
                <asp:LinkButton ID="lbtnPrdtAdvisory" runat="server" 
                    onclick="lbtnPrdtAdvisory_Click">商品咨询信息</asp:LinkButton>
            </td>
        </tr>--%>
</table>
</ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="btnAddProduct" />
            <asp:PostBackTrigger ControlID="btnRecycle" />
            <asp:PostBackTrigger ControlID="btnManage" />
<%--            <asp:PostBackTrigger ControlID="lbtnPrdtIn" />
            <asp:PostBackTrigger ControlID="lbtnStockOut" />
            <asp:PostBackTrigger ControlID="lbtnPrdtRemark" />
            <asp:PostBackTrigger ControlID="lbtnPrdtAdvisory" />--%>
        </Triggers>
</asp:UpdatePanel>
</asp:Content>
